package com.education.user.pojo;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

/**
 * APP版本表 sys_edition
 *
 * @author d
 * @date 2020-05-28
 */

@Table( name = "sys_edition")
public class SysEdition implements Serializable {
    private static final long serialVersionUID=1L;

    /**  */
    @Id
    private Integer id;

    /** 描述 */
    private String remark;

    /** 版本号 */
    private String version;

    /** 安装包路径 */
    private String packageUrl;

    /** 安装包类型 1 安卓版本 2 ios版本 */
    private String packageType;

    /** 升级类型 1 强制类型 2 推荐升级 */
    private String upgradeType;

    /** 上传日期 */
    private Date createTime;

    /** 链接*/
    private String code;

    /**
     * 1.学生APP 2.教师APP
     */
    private String endpoint;

    @Transient
    private String createTimeString;

    public String getCreateTimeString() {
        return createTimeString;
    }

    public void setCreateTimeString(String createTimeString) {
        this.createTimeString = createTimeString;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getPackageUrl() {
        return packageUrl;
    }

    public void setPackageUrl(String packageUrl) {
        this.packageUrl = packageUrl;
    }

    public String getPackageType() {
        return packageType;
    }

    public void setPackageType(String packageType) {
        this.packageType = packageType;
    }

    public String getUpgradeType() {
        return upgradeType;
    }

    public void setUpgradeType(String upgradeType) {
        this.upgradeType = upgradeType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getEndpoint() {
        return endpoint;
    }

    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }

    @Override
    public String toString() {
        return "SysEdition{" +
                "id=" + id +
                ", remark='" + remark + '\'' +
                ", version='" + version + '\'' +
                ", packageUrl='" + packageUrl + '\'' +
                ", packageType='" + packageType + '\'' +
                ", upgradeType='" + upgradeType + '\'' +
                ", createTime=" + createTime +
                ", code='" + code + '\'' +
                ", endpoint='" + endpoint + '\'' +
                ", createTimeString='" + createTimeString + '\'' +
                '}';
    }
}